<?php
class Fans_model extends ZY_Model {
	public $pri_column="fans_id";
    public function __construct(){
        // Call the CI_Model constructor
        parent::__construct($this->pri_column);
    }
     public function add(){
        $fans=$this->input->post('fans');
        $this->insert($fans);
    }
    public function edit($id){
        $fans=$this->input->post('fans');
		$this->update($points, array('fans_id='.$id));
    }
}